{% extends "base.html" %}
{% block mainbody %}
    {% load my_tags %}
    {% load static %}
    <link rel="stylesheet" href="/static/plugins/bootstrap-3.4.1-dist/css/bootstrap.css">
    <h2>=======static test code==========</h2>
    <img src="{% static 'images/logo.png' %}" alt="logo">
    <h2>=======my_tags test code==========</h2>
    <h2>{% add 11 220 330 %}</h2>
    <h2>{% my_html "aaa" "xxx" %}</h2>
    <h2>{{ 'myfiltertest!' | sub:3 }}</h2>
    <h2>=======date test code==========</h2>
    <h2>{{ now_time|date:"Y-m-d H:i:s" }}</h2>
    <h2>{{ now_time }}</h2>
    <h2>========TAG TEST CODE=========</h2>
    <h2>{{ dict }}</h2>
    <h2>{{ dict.name|upper|truncatechars:"9" }}</h2>
    <h2>{{ context_dict|default:"DEFAULT TEXT!" }}</h2>
    <h2>{{ lists }}</h2>
    <h2>{{ str|safe }}</h2>
    <h2>=======if else test code==========</h2>
    <h2>{% if num > 90 and num <= 100 %}
        excellent
    {% elif num > 60 and num <= 90 %}
        eligible
    {% else %}
        disqualification
    {% endif %}</h2>
    <h2>=======for test code==========</h2>
    {% for str in lists reversed %}
        <p>{{ forloop.counter }}:={{ str }}</p>
    {% empty %}
        <H2>LIST IS EMPTY!</H2>
    {% endfor %}
    <h2>=================</h2>
    {% for x,y in context_dict.items %}
        <p>{{ forloop.counter }}--{{ x }}--{{ y }}</p>
    {% endfor %}
{% endblock %}